﻿<div class="row">
	<div class="col-xs-2">
		<form id="add_angebot_form">
			<input type="hidden" name="c" value="Angebot">
			<input type="hidden" name="a" value="Detail">
			<input type="hidden" name="a_id" value="0">
		
			<!--<button type="submit" class="btn btn-success" >
				<span class="glyphicon glyphicon-plus"></span> <?= HTML::Write("Neues Angebot erstellen"); ?>
			</button>-->
		</form>
	</div>
</div>

<!-- Dummy Row für den Abstand -->
<div class="row">&nbsp;</div>

<div class="row">
	<table class="table table-striped table-hover">
		<tr>
			<th width="150"><?= HTML::Write("Name"); ?></th>
			<th width="100"><?= HTML::Write("Gültig"); ?></th>
			<th width="50"><?= HTML::Write("Produkte"); ?></th>
		</tr>
	<?php
			foreach($this->Angebote as $angebot)
			{
	?>
		<tr>
			<td><a href="?c=Angebot&a=Detail&a_id=<?= HTML::Write($angebot->ID); ?>"><?= HTML::Write($angebot->Name); ?></a></td>
			<td class="<?= HTML::Write($angebot->GetAvailabilityDisplayClass()); ?>"><?= HTML::Write($angebot->GetAvailability()); ?></td>
			<td><?= HTML::Write($angebot->GetProductsInAngebot()); ?></td>
		</tr>
	<?php
			}
	?>
	</table>
</div>